using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Collections.Generic;
/// <summary>
/// Summary description for ServiceObject
/// </summary>
public class ServiceObject
{
    #region constants
    public static readonly byte Published = 0;
    public static readonly byte Unpublished = 1;
    public static readonly byte Both = 2;
    #endregion
    /// <summary>
    /// Fields of ServiceObject
    /// </summary>
    #region Fields
    int id;    
    string name;   
    string description;   
    string imageURL;   
    string article;    
    string tag;  
    bool state;   
    DateTime modifiedDate;   
    int modifiedBy;
   
    #endregion

    /// <summary>
    /// Properties of ServiceObject
    /// </summary>
    #region Properties
    public int Id
    {
        get { return id; }
        set { id = value; }
    }
    public string Name
    {
        get { return name; }
        set { name = value; }
    }
    public string Description
    {
        get { return description; }
        set { description = value; }
    }
    public string ImageURL
    {
        get { return imageURL; }
        set { imageURL = value; }
    }
    public string Article
    {
        get { return article; }
        set { article = value; }
    }
    public string Tag
    {
        get { return tag; }
        set { tag = value; }
    }
    public bool State
    {
        get { return state; }
        set { state = value; }
    }
    public DateTime ModifiedDate
    {
        get { return modifiedDate; }
        set { modifiedDate = value; }
    }
    public int ModifiedBy
    {
        get { return modifiedBy; }
        set { modifiedBy = value; }
    }
    #endregion

    /// <summary>
    /// Constructures ServiceObject
    /// </summary>
    #region Constructures
    public ServiceObject()
    {
        id = 0;
        name = "";
        description="";
        imageURL = "";
        article = "";
        tag = "";
        state = false;
        modifiedBy = 0;
        modifiedDate = new DateTime();

    }
    public ServiceObject(int id, string name, string description, string imageURL, string article, string tag, bool state, DateTime modifiedDate, int modifiedBy)
	{
        this.id = id;
        this.name = name;
        this.description = description;
        this.imageURL = imageURL;
        this.article = article;
        this.tag = tag;
        this.state = state;
        this.modifiedBy = modifiedBy;
        this.modifiedDate = modifiedDate;
    }
    #endregion

    #region methods
    //public static void GetPulishedObjects(ref IList<ServiceObject> inList)
    //{
    //    foreach (ServiceObject sObj in inList)
    //    {
    //        if (!sObj.state)
    //        {
    //            inList.Remove(sObj);
    //        }
    //    }
    //}
    #endregion

}
